package com.example.demo.netty.protocol;

import com.example.demo.netty.message.LoginRequestMessage;
import io.netty.channel.embedded.EmbeddedChannel;
import io.netty.handler.logging.LoggingHandler;

public class TestSerializer {


    public static void main(String[] args) {
        MessageCodecSharable codecSharable = new MessageCodecSharable();
        LoggingHandler log = new LoggingHandler();
        EmbeddedChannel channel = new EmbeddedChannel(log, codecSharable, log);
        LoginRequestMessage message = new LoginRequestMessage("zhangsan", "123");
        channel.writeOutbound(message);
    }
}
